#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class StaffTrainDetail : Business.BusinessBase<StaffTrainDetail, int>
	{
		#region Fields and Properties

		private Decimal scoreInPratise = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal ScoreInPratise
		{
			get { return scoreInPratise; }
			set
			{
				if (value != scoreInPratise)
				{
					MarkChanged("ScoreInPratise");
					scoreInPratise = value;
				}
			}
		}

		private Decimal scoreInTheory = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal ScoreInTheory
		{
			get { return scoreInTheory; }
			set
			{
				if (value != scoreInTheory)
				{
					MarkChanged("ScoreInTheory");
					scoreInTheory = value;
				}
			}
		}

		private String staffCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StaffCode
		{
			get { return staffCode; }
			set
			{
				if (value != staffCode)
				{
					MarkChanged("StaffCode");
					staffCode = value;
				}
			}
		}

		private String trainCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TrainCode
		{
			get { return trainCode; }
			set
			{
				if (value != trainCode)
				{
					MarkChanged("TrainCode");
					trainCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public StaffTrainDetail()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override StaffTrainDetail DataSelect(int id)
		{
			return Services.DALService.StaffTrainDetailService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.StaffTrainDetailService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.StaffTrainDetailService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.StaffTrainDetailService.Delete(this);
		}

		#endregion Base overrides
	}
}
